/* 请求日志器样式 */
.request-logger {
  position: fixed;
  right: 20rpx;
  bottom: 120rpx;
  z-index: 9999;
  width: 700rpx;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16rpx;
  box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.request-logger.minimized {
  width: 240rpx;
  height: auto;
}

.request-logger__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 24rpx;
  background-color: #007aff;
  color: #fff;
}

.request-logger__title {
  font-size: 28rpx;
  font-weight: bold;
}

.request-logger__actions {
  display: flex;
  align-items: center;
}

.request-logger__action {
  font-size: 24rpx;
  margin-left: 20rpx;
  padding: 4rpx 8rpx;
  cursor: pointer;
}

.request-logger__content {
  max-height: 800rpx;
  padding: 16rpx;
}

.request-logger__log-item {
  margin-bottom: 16rpx;
  padding: 16rpx;
  border-radius: 8rpx;
  background-color: #f5f5f5;
  cursor: pointer;
}

.request-logger__log-item.success {
  border-left: 8rpx solid #34c759;
}

.request-logger__log-item.failed {
  border-left: 8rpx solid #ff3b30;
}

.request-logger__log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.request-logger__log-method {
  font-weight: bold;
  font-size: 24rpx;
  padding: 4rpx 8rpx;
  background-color: #333;
  color: #fff;
  border-radius: 4rpx;
}

.request-logger__log-url {
  flex: 1;
  font-size: 24rpx;
  margin: 0 16rpx;
  word-break: break-all;
}

.request-logger__log-status {
  font-size: 24rpx;
  padding: 4rpx 8rpx;
  border-radius: 4rpx;
}

.request-logger__log-time {
  font-size: 22rpx;
  color: #666;
  margin-left: 8rpx;
}

.request-logger__log-detail {
  margin-top: 16rpx;
  padding-top: 16rpx;
  border-top: 1px solid #e5e5e5;
}

.request-logger__log-section {
  margin-bottom: 16rpx;
}

.request-logger__log-section-title {
  font-size: 24rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
  display: block;
}

.request-logger__log-section-content {
  font-size: 24rpx;
  color: #333;
  word-break: break-all;
  white-space: pre-wrap;
  background-color: #fff;
  padding: 8rpx;
  border-radius: 4rpx;
  display: block;
  overflow-x: auto;
}

.request-logger__empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200rpx;
  color: #999;
  font-size: 28rpx;
}

/* 悬浮按钮样式 */
.request-logger-button {
  position: fixed;
  right: 20rpx;
  bottom: 40rpx;
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  background-color: #007aff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
  z-index: 9998;
  cursor: pointer;
}

.request-logger-button:active {
  transform: scale(0.95);
}

.request-logger-button__icon {
  width: 40rpx;
  height: 40rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.request-logger-button__icon-line {
  width: 100%;
  height: 4rpx;
  background-color: #fff;
  border-radius: 2rpx;
}

/* 状态样式 */
.success .request-logger__log-status {
  background-color: #34c759;
  color: #fff;
}

.failed .request-logger__log-status {
  background-color: #ff3b30;
  color: #fff;
}
